home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global g1erSprChr, gMaxBoutons, g1erSprLoc, gEtudPrec, gPartie
- repeat with i = g1erSprLoc + 6 to g1erSprLoc + 9
- set the visible of sprite i to 1
- end repeat
- if ((gEtudPrec = "SU") or (gEtudPrec = "CO")) and (gPartie <> " ") then
- nothing()
- else
- repeat with i = g1erSprLoc + 10 to g1erSprLoc + 14
- set the visible of sprite i to 0
- puppetSprite(i, 1)
- end repeat
- end if
- end
-
- on exitFrame
- global gSujet0, gSujet1, gListCod, gEtudAct, gEtudPrec, gEtatEtud, gPartie, g1erSprChr, g1erSprLoc, g1erSprNav, gMaxBoutons, gBoutons, gScopeCo0, gScopeCo1, gPosVideo, gPosDebP, gPosDebS0, gPosDebS1, gPosDebE, gTraduit, gMessDef2, gMessSty2, gMessDef1, gMol
- repeat with i = g1erSprChr to gMaxBoutons
- puppetSprite(i, 1)
- end repeat
- gBoutons(appuie, g1erSprLoc + 1)
- set gMol to 0
- gBarChron(fleche, 0, 1, 1)
- Affiche_Date(gSujet0, "ZI1", "ZI2", "ZI3", 0)
- set monEpok to gSujet0(Le_Epoque)
- if (monEpok = 70) or (monEpok = 4) then
- gBoutons(habille, g1erSprLoc + 5, "vide")
- end if
- gBarChron(fleche, 0, 1, 1)
- gBarChron(fleche, 1, monEpok, 0)
- set monStatut to gSujet0(Le_Statut)
- if monStatut = "A" then
- gBoutons(appuie, g1erSprLoc + 4)
- set the visible of sprite (g1erSprNav + 2) to 1
- else
- gBoutons(appuie, g1erSprLoc + 5)
- set the visible of sprite (g1erSprNav + 2) to 0
- end if
- if ((gEtudPrec = "SU") or (gEtudPrec = "CO")) and (gPartie <> " ") then
- if gEtudPrec = "SU" then
- set gSujet1 to 0
- end if
- if gSujet1 = 0 then
- set gSujet1 to gSujet0
- end if
- set gPosDebS0 to (getPos(gListCod, gSujet0(Le_Code)) - 1) * 300 * 4
- set gPosDebS1 to (getPos(gListCod, gSujet1(Le_Code)) - 1) * 300 * 4
- set gPosDebP to (getPos(gListPart, gPartie) - 1) * 300
- gScopeCo0(SetTime, gPosDebE + gPosDebS0 + gPosDebP + gPosVideo)
- gScopeCo1(SetTime, gPosDebE + gPosDebS1 + gPosDebP + gPosVideo)
- gScopeCo0(visible, 1)
- gScopeCo1(visible, 1)
- if gPartie = "T" then
- set monNumSpr to g1erSprLoc + 9
- else
- if gPartie = "C" then
- set monNumSpr to g1erSprLoc + 8
- else
- if gPartie = "S" then
- set monNumSpr to g1erSprLoc + 7
- else
- set monNumSpr to g1erSprLoc + 6
- end if
- end if
- end if
- gBoutons(appuie, monNumSpr)
- if gSujet1 = gSujet0 then
- set gEtatEtud to " "
- gBoutons(habille, g1erSprLoc + 11, "BTPVID 1")
- set the visible of sprite (g1erSprLoc + 14) to 0
- repeat with i = g1erSprLoc + 10 to g1erSprLoc + 13
- set the visible of sprite i to 1
- end repeat
- set gMessDef1 to getAt(gTraduit, 54)
- set gMessSty2 to "bold"
- set gMessDef2 to " "
- else
- set gEtatEtud to gPartie
- gBoutons(habille, g1erSprLoc + 11, "BTPOEF 1")
- set the visible of sprite (g1erSprLoc + 10) to 1
- set the visible of sprite (g1erSprLoc + 11) to 1
- set the visible of sprite (g1erSprLoc + 12) to 0
- set the visible of sprite (g1erSprLoc + 13) to 0
- set the visible of sprite (g1erSprLoc + 14) to 1
- set gMessDef1 to getAt(gTraduit, 38)
- set gMessSty2 to "bold italic"
- set gMessDef2 to gSujet1(Le_Nom)
- end if
- else
- set gMessDef1 to getAt(gTraduit, 39)
- set gMessSty2 to "bold"
- set gMessDef2 to " "
- set gPartie to " "
- set gSujet1 to 0
- set gEtatEtud to " "
- end if
- set the trace to 0
- curseur(-1)
- JukeBox(1, " ")
- BigPurge()
- end
-